package com.wxl.common.util

/**
 * create file time : 2021/4/1
 * create user : wxl
 * subscribe :
 */
class ClickUtil {
    companion object {
        private var currentClickTime = 0L

        fun canClick(): Boolean {
            val time = System.currentTimeMillis()
            if (time > currentClickTime + 500) {
                currentClickTime = time
                return true
            }
            return false
        }
    }
}